package top.revery.web_client.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.revery.web_client.service_interface.UserServiceDataSource;

import javax.annotation.PostConstruct;

/**
 * <h1> --- 服务访问映射 --- </h1>
 * Created by  revery.top jun
 * Date  2019-12-05 11:48
 */
@Component
public class FeignServiceMapping{

    /*
    * User Service
    * */
    public static UserServiceDataSource userServiceDataSource;

    @Component
    public class AutoLoadData{

        @Autowired
        private UserServiceDataSource userServiceDataSource;

        @PostConstruct
        void init(){
            FeignServiceMapping.userServiceDataSource = this.userServiceDataSource;
        }
    }
}
